home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Milan_1991 / Devcon91.2 / TIGA / include / a2410 / ti_function_nums.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-01  |  7.1 KB  |  193 lines

  1. #ifndef TIGA_TI_FUNCTION_NUMS_H
  2. #define TIGA_TI_FUNCTION_NUMS_H
  3. /*
  4. **    $Filename: tiga/ti_function_nums.h $
  5. **    $Release: $$$RELEASE$$$ $
  6. **
  7. **    PUBLIC FILE
  8. **
  9. **    (C) Copyright 1988,1989,1990 University of Lowell
  10. **                    Center for Productivity Enhancement
  11. **      All Rights Reserved
  12. **
  13. **
  14. ** Purpose:
  15. **   Define command number modifiers
  16. **
  17. **
  18. */
  19.  
  20. #ifndef EXEC_TYPES_H
  21. #include <exec/types.h>
  22. #endif    /* !EXEC_TYPES_H */
  23.  
  24.  
  25. #define CORE_CP(a)              ((a) | 0x7E00)        /* module 31 */
  26. #define CORE_DM(a)              ((a) | 0x3E00)
  27.  
  28. #define EXT_CP(a)               ((a) | 0x7C00)        /* module 30 */
  29. #define EXT_DM(a)               ((a) | 0x3C00)
  30.  
  31. /* Amiga-Specific Primitives                                         */
  32. #define ASP_CP(a)               ((a) | 0x7A00)        /* module 29 */
  33. #define ASP_DM(a)               ((a) | 0x3A00)    
  34.  
  35. #define USER_CP(a)              ((a) | 0x4000)
  36. #define USER_DM(a)              ((a) | 0x0000)
  37.  
  38.  
  39.  
  40. /* ======================================================================= */
  41. /* === Core Primitives =================================================== */
  42. /* ======================================================================= */
  43. #define ADD_INTERRUPT         CORE_CP( 0) 
  44. #define DEL_INTERRUPT         CORE_CP( 1) 
  45. #define FUNCTION_IMPLEMENTED  CORE_CP( 2) 
  46. #define GET_COLORS            CORE_CP( 3) 
  47. #define GET_CONFIG            CORE_CP( 4) 
  48. #define GSP_MAXHEAP           CORE_CP( 6) 
  49. #define GET_OFFSCREEN_MEMORY  CORE_CP( 7) 
  50. #define GET_PALET_ENTRY       CORE_CP( 8) 
  51. #define GET_PMASK             CORE_CP( 9) 
  52. #define GET_PPOP              CORE_CP(10) 
  53. #define GET_TRANSP            CORE_CP(11) 
  54. #define GET_WINDOWING         CORE_CP(12) 
  55. #define GSP_CALLOC            CORE_CP(13) 
  56. #define GSP_FREE              CORE_CP(14) 
  57. #define GSP_MALLOC            CORE_CP(15) 
  58. #define GSP_MINIT             CORE_CP(16) 
  59. #define GSP_REALLOC           CORE_CP(17) 
  60. #define INIT_CURSOR           CORE_CP(18) 
  61. #define SET_CONFIG            CORE_CP(20) 
  62. #define PAGE_FLIP             CORE_CP(21) 
  63. #define SET_PALET             CORE_CP(22) 
  64. #define TRANSP_OFF            CORE_CP(23) 
  65. #define TRANSP_ON             CORE_CP(24) 
  66. #define VIDEO_ENABLE          CORE_CP(25) 
  67. #define GET_STATE             CORE_CP(26) 
  68. #define CLEAR_SCREEN          CORE_DM(27) 
  69. #define GET_NEAREST_COLOR     CORE_DM(28) 
  70. #define GET_PALET             CORE_CP(29) 
  71. #define GSP2GSP               CORE_DM(30) 
  72. #define INIT_PALET            CORE_DM(31) 
  73. #define LMO                   CORE_DM(32) 
  74. #define PALLOC                CORE_DM(33) 
  75. #define PEEK_BREG             CORE_DM(34) 
  76. #define POKE_BREG             CORE_DM(35) 
  77. #define RMO                   CORE_DM(36) 
  78. #define SET_BCOLOR            CORE_DM(37) 
  79. #define SET_COLORS            CORE_DM(38) 
  80. #define SET_FCOLOR            CORE_DM(39) 
  81. #define SET_INTERRUPT         CORE_CP(40) 
  82. #define SET_PALET_ENTRY       CORE_DM(41) 
  83. #define SET_PMASK             CORE_DM(42) 
  84. #define SET_PPOP              CORE_DM(43) 
  85. #define SET_WINDOWING         CORE_DM(44) 
  86. #define SET_CLIP_RECT         CORE_DM(45) 
  87. #define WAIT_SCAN             CORE_CP(46) 
  88. #define SET_WKSP              CORE_DM(47) 
  89. #define ADD_MODULE            CORE_CP(48) 
  90. #define DEL_MODULE            CORE_CP(49) 
  91. #define DEL_ALL_MODULES       CORE_CP(50) 
  92. #define GET_ISR_PRIORITIES    CORE_CP(51) 
  93. #define INIT_INTERRUPTS       CORE_CP(52) 
  94. #define SET_CURS_SHAPE        CORE_DM(53)
  95. #define SET_CURS_STATE        CORE_DM(54) 
  96. #define GET_CURS_STATE        CORE_CP(55) 
  97. #define GET_CURS_XY           CORE_CP(56) 
  98. #define FLUSH_EXTENDED        CORE_CP(57) 
  99. #define PAGE_BUSY             CORE_CP(58) 
  100. #define CLEAR_FRAME_BUFFER    CORE_DM(59) 
  101. #define CLEAR_PAGE            CORE_DM(60) 
  102. #define GET_WKSP              CORE_CP(61) 
  103. #define CPW                   CORE_DM(62) 
  104. #define INIT_TEXT             CORE_CP(63) 
  105. #define TEXT_OUT              CORE_CP(64) 
  106. #define GET_FONTINFO          CORE_CP(65) 
  107. #define GET_MODULE            CORE_CP(66)
  108. /* The following are NOT implemented due to hardware factors. */
  109. #define COP2GSP              CORE_CP(69)
  110. #define GSP2COP              CORE_CP(70)
  111. #define SET_TRANSP          CORE_CP(71)
  112.  
  113.  
  114.  
  115. /* ======================================================================= */
  116. /* === Amiga Specific Primitives ========================================= */
  117. /* ======================================================================= */
  118. #define SET_SPEC_REG          ASP_CP(0)
  119. #define SET_MODE_BIT          ASP_CP(1)
  120. #define SET_SYNC_BIT          ASP_CP(2)
  121. #define SET_SWAP_BIT          ASP_CP(3)
  122. #define SEE_PLANES          ASP_CP(4)
  123. #define DRAW_PLANE            ASP_CP(5)
  124. #define SET_OVL_COLOR          ASP_CP(6)
  125. #define DMA16_GSP2GSP         ASP_DM(7) 
  126. #define DMA_HOST2GSPXY          ASP_CP(8)
  127. #define DMA_GSP2HOSTXY          ASP_CP(9)
  128.  
  129.  
  130.  
  131. /* ======================================================================= */
  132. /* = Extended Function Command Numbers =================================== */
  133. /* ======================================================================= */
  134. #define SET_DSTBM           EXT_CP( 0)
  135. #define SET_SRCBM           EXT_CP( 1)
  136. #define STYLED_LINE         EXT_CP( 2)
  137. #define SWAP_BM             EXT_CP( 3)
  138. #define DRAW_POLYLINE_A     EXT_CP( 4)
  139. #define FILL_CONVEX_A       EXT_CP( 5)
  140. #define FILL_POLYGON_A      EXT_CP( 6)
  141. #define PATNFILL_CONVEX_A   EXT_CP( 7)
  142. #define PATNFILL_POLYGON_A  EXT_CP( 8)
  143. #define PATNPEN_POLYLINE_A  EXT_CP( 9)
  144. #define PEN_POLYLINE_A      EXT_CP(10)
  145. #define BITBLT              EXT_DM(11)
  146. #define DRAW_LINE           EXT_DM(12)
  147. #define DRAW_OVAL           EXT_DM(13)
  148. #define DRAW_OVALARC        EXT_DM(14)
  149. #define DRAW_PIEARC         EXT_DM(15)
  150. #define DRAW_POINT          EXT_DM(16)
  151. #define DRAW_POLYLINE       EXT_DM(17)
  152. #define DRAW_RECT           EXT_DM(18)
  153. #define FILL_CONVEX         EXT_DM(19)
  154. #define FILL_OVAL           EXT_DM(20)
  155. #define FILL_PIEARC         EXT_DM(21)
  156. #define FILL_POLYGON        EXT_DM(22)
  157. #define FILL_RECT           EXT_DM(23)
  158. #define FRAME_OVAL          EXT_DM(24)
  159. #define FRAME_RECT          EXT_DM(25)
  160. #define GET_PIXEL           EXT_DM(26)
  161. #define PATNFILL_CONVEX     EXT_DM(27)
  162. #define PATNFILL_OVAL       EXT_DM(28)
  163. #define PATNFILL_PIEARC     EXT_DM(29)
  164. #define PATNFILL_POLYGON    EXT_DM(30)
  165. #define PATNFILL_RECT       EXT_DM(31)
  166. #define PATNFRAME_OVAL      EXT_DM(32)
  167. #define PATNFRAME_RECT      EXT_DM(33)
  168. #define PATNPEN_LINE        EXT_DM(34)
  169. #define PATNPEN_OVALARC     EXT_DM(35)
  170. #define PATNPEN_PIEARC      EXT_DM(36)
  171. #define PATNPEN_POINT       EXT_DM(37)
  172. #define PATNPEN_POLYLINE    EXT_DM(38)
  173. #define PEN_LINE            EXT_DM(39)
  174. #define PEN_OVALARC         EXT_DM(40)
  175. #define PEN_PIEARC          EXT_DM(41)
  176. #define PEN_POINT           EXT_DM(42)
  177. #define PEN_POLYLINE        EXT_DM(43)
  178. #define SEED_FILL           EXT_DM(44)
  179. #define SEED_PATNFILL       EXT_DM(45)
  180. #define SET_DRAW_ORIGIN     EXT_DM(46)
  181. #define SET_PENSIZE         EXT_DM(47)
  182. #define ZOOM_RECT           EXT_DM(48)
  183. #define SET_PATN            EXT_DM(49)
  184. #define INSTALL_FONT        EXT_CP(50)
  185. #define SELECT_FONT         EXT_CP(51)
  186. #define DELETE_FONT         EXT_CP(52)
  187. #define SET_TEXTATTR        EXT_CP(53)
  188. #define GET_TEXTATTR        EXT_CP(54)
  189. #define TEXT_WIDTH          EXT_CP(55)
  190. #define GET_ENV             EXT_CP(56)
  191.  
  192. #endif    /*  TIGA_TI_FUNCTION_NUMS_H */
  193.